//引入store
import store from '../../store/index'
//引入常量
import { INCREMENTCOUNT, DECREMENTCOUNT } from '../constant/countConst'


//封装累加actions函数
export const incrementAction = (data = 1) => {
  return {
    type: INCREMENTCOUNT,
    data: 1
  }
}

//封装累减actions函数
export const decrementAction = (data = 2) => {
  return {
    type: DECREMENTCOUNT,
    data: 2
  }
}